/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.service.shop;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.hk.shop.entity.shop.HkShopAccount;
import com.thinkgem.jeesite.modules.hk.shop.dao.shop.HkShopAccountDao;

import static com.thinkgem.jeesite.modules.sys.service.SystemService.entryptPassword;

/**
 * 店铺提现信息Service
 *
 * @author 李欣荣
 * @version 2018-11-19
 */
@Service
@Transactional(readOnly = true)
public class HkShopAccountService extends CrudService<HkShopAccountDao, HkShopAccount> {

    public HkShopAccount get(String id) {
        return super.get(id);
    }

    public List<HkShopAccount> findList(HkShopAccount hkShopAccount) {
        return super.findList(hkShopAccount);
    }

    public Page<HkShopAccount> findPage(Page<HkShopAccount> page, HkShopAccount hkShopAccount) {
        return super.findPage(page, hkShopAccount);
    }

    @Transactional(readOnly = false)
    public void save(HkShopAccount hkShopAccount) {
        String pwd = entryptPassword(hkShopAccount.getPayPawwrod());
        hkShopAccount.setPayPawwrod(pwd);
        super.save(hkShopAccount);
    }

    @Transactional(readOnly = false)
    public void delete(HkShopAccount hkShopAccount) {
        super.delete(hkShopAccount);
    }

}